package com.design.create.singleton;

/**
 * 懒汉式单例
 */
public class LazySingleton {

    private LazySingleton() {}

    private static LazySingleton lazySingleton = null;

    public LazySingleton getInstance() {
        if (lazySingleton == null) {
            lazySingleton = new LazySingleton();
        }
        return lazySingleton;
    }
}
